package com.example.goodpet.db.entity;

import androidx.room.Entity;

import org.jetbrains.annotations.NotNull;


@Entity(tableName = "search_history", primaryKeys = {"createTime","searchContent"})
public class SearchHistory {

    @NotNull
    private long createTime;

    @NotNull
    private String searchContent;




    public SearchHistory(long createTime, @NotNull String searchContent) {
        this.createTime = createTime;
        this.searchContent = searchContent;
    }

    @NotNull
    public String getSearchContent() {
        return searchContent;
    }

    public void setSearchContent(@NotNull String searchContent) {
        this.searchContent = searchContent;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }
}
